// import axios from 'axios'


const state = {
  inspect: {
    liveRecord: [],
    /*
    {
      clientName: 被检查人姓名
      clientOffice: 被检查人科室
      clientGroup: 被检查人班组
      clientRank: 被检查人资质
      categories:[]
      seat: 席位
      sector: 扇区
      begin: 开始时间
      duration: 时长
      time: 提交时间
      userName: 检查人姓名
      userOffice: 检查人科室
      userGroup: 检查人班组
      type: 检查类型 ( 现场 回放 监控)
      status: 状态 (0: 生效 -1: 已撤销)
    }
    */
  }

}

const mutations = {
  createLiveInspect(state, payload) {
    state.inspect.liveRecord.push(payload);
  },
  saveLiveInspect(state, { idx, content }) {
    state.inspect.liveRecord[idx].categories = content;
  },
  disposeLiveInspect(state, { idx }) {
    state.inspect.liveRecord.splice(idx, 1);
  }
}

const actions = {


}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}